package cn.jbit.utils;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * 源码学院只为培养优秀的bat程序员而生
 *
 * @author 学员张在成
 * @data 2021/6/14
 */
@Component
@Data
public class ResResult<T> implements Serializable {

    private  Integer  code;//返回的状态码

    private  String  msg;//返回消息

    private  Object data;  //返回数据

    public ResResult(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }




}
